<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    
<%@ page import="board1.ReplyDAO" %>
<%@ page import="board1.ReplyTO" %>

<%
	request.setCharacterEncoding("UTF-8");
	
	ReplyTO to = new ReplyTO();
	to.setIdx(request.getParameter("idx"));
	to.setPhone_number(request.getParameter("phone_number"));
	to.setSubcontent(request.getParameter("subcontent"));
// 	to.setUser_lv(request.getParameter("user_lv"));
	
// 	log(request.getParameter("idx"));
// 	log(request.getParameter("phone_number"));
// 	log(request.getParameter("subcontent"));
// 	log(request.getParameter("user_lv"));
	
// 	to.setContent(request.getParameter("content"));
// 	to.setWip(request.getRemoteAddr());
	
	ReplyDAO dao = new ReplyDAO();
	
	if(dao.insertReply(to)) {
		out.println("SUCCESS");
	} else {
		out.println("FAIL");
	}
%>